<template>
	<view class="container">
		<rich-text :nodes="noticeDetail.content"></rich-text>
	</view>
</template>

<script>
	var app = getApp();
	import http from '../../../common/js/request.js'
	export default {
		data() {
			return {
				noticeDetail: {},
				storeId: app.globalData.storeId
			}
		},
		onLoad(options) {
			var that = this;
			http.post('/api/v1/store/store_article_detail', {
				article_id: options.id,
				store_id: that.storeId
			}, res => {
				if (res.state == 1) {
					that.noticeDetail = res.datas;
					uni.setNavigationBarTitle({
						title: that.noticeDetail.name
					});
				} else {
					uni.showModal({
						title: '提示',
						content: res.datas,
						showCancel: false,
						success: res => {
							if (res.confirm) {
								uni.navigateBack();
							}
						},
					});
				}

			});
		},
		methods: {

		}
	}
</script>

<style>

</style>
